package com.common.www.data.global;

public enum RabbitEnum {

    TEST_ORDER("com.design.www.testorder", "测试订单的队列"),
    TOKEN("com.design.www.token", "token处理的队列"),
    SHOP_PV("com.design.www.shop.pv", "门店pv值处理队列"),
    DELETE_QINIU_FILE("com.design.www.delete.qiniu", "删除七牛文件的队列"),
    WITHDRAW_TO_ACCOUNT("com.design.www.withdraw.toaccount", "提现到账户的队列"),
    PUSH("com.design.www.push", "推送消息");

    public String name = "";
    public String queue = "";
    public String exchange = "";
    public String routing = "";
    /**
     * 描述
     */
    public String describe = "";

    // 构造方法
    RabbitEnum(String name, String describe) {
        this.name = name;
        this.describe = describe;
        this.queue = name + ".queue";
        this.exchange = name + ".exchange";
        this.routing = name + ".routing";
    }

    public String getDescribe() {
        return describe;
    }

    public String getName() {
        return name;
    }

    public String getQueue() {
        return queue;
    }

    public String getExchange() {
        return exchange;
    }

    public String getRouting() {
        return routing;
    }

}
